package Reflect.zy;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Target(ElementType.TYPE)表示当前注解，只能标注在类上
 * @Retention()保留
 * @Retention(RetentionPolicy.SOURCE)保留在源码，编译后消失
 * @Retention(RetentionPolicy.CLASS)保留到类(字节码),运行期消失
 * @Retention(RetentionPolicy.RUNTIME)保留到运行期间
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface TestAnnotation {

}
